package mx.com.theboard.client.menu;

import mx.com.theboard.shared.entidades.Pizarron;
import mx.com.theboard.shared.entidades.Usuario;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.*;



public class BotonMenu extends Composite implements HasClickHandlers,ClickHandler  {
	protected Usuario usuario;
	protected Pizarron pizarron;
	protected AbsolutePanel content;
	
	public BotonMenu(String imgstr,String stylename){		
		content = new AbsolutePanel();		
		Image image = new Image("imagenes/"+imgstr);
		image.setStyleName("gwt-Image "+stylename);
		content.add(image);
		image.setSize("30px", "30px");
		initWidget(content);
		
		this.addClickHandler(this);
	}
	
	public BotonMenu(String imgstr,String stylename,Usuario usuario,Pizarron pizarron){
		this(imgstr, stylename);
		this.pizarron = pizarron;
		this.usuario = usuario;
	}

	@Override
	public HandlerRegistration addClickHandler(ClickHandler handler) {
		return addDomHandler(handler, ClickEvent.getType());
	}

	@Override
	public void onClick(ClickEvent event) {
		// TODO Auto-generated method stub
		
	}

		
	
}
